package com.qyhl.webtv.module_news.news.information.info.fragment;


import com.qyhl.webtv.commonlib.entity.news.AdvHomeBean;
import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/28.
 */

public interface InformationFragmentContract {
    interface InformationFragmentView {
        void setDatas(List<NewsBean> beanList, boolean isMore);

        void setHeaderNum(int num);

        void setHeaderError();

        void setAdvData(List<AdvHomeBean> beanList);

        void setAdvError(String msg);

        void setError(String msg);

        void setEmpty(String msg);

        void setNetError(String msg);

        void showMessage(String msg);

        void showLog(String msg);
    }

    interface InformationFragmentPresenter {
        void getDatas(String sectionId, String newsId);

        void getHeaderNum(String sectionId);

        void getAdvData(String sectionId);

        void setDatas(List<NewsBean> beanList, boolean isMore);

        void setError(int code, String msg);

        void setHeaderNum(int num);

        void setHeaderError();

        void setAdvData(List<AdvHomeBean> beanList);

        void setAdvError(String msg);
    }

    interface InformationFragmentModel {
        void getDatas(String sectionId, String newsId);

        void getHeaderNum(String sectionId);

        void getAdvData(String sectionId);
    }
}
